module.exports = {
  devServer: {
    //关闭eslint警告
    overlay: {
      warnings: false,
      errors: false
    },
    //代理解决跨域
    //接口地址：http://study.jsplusplus.com/Xiaomi/getDatas?swiper=false&phone=true&field=true
    proxy: {
      '/api': {
        target: 'http://study.jsplusplus.com/Xiaomi/',
        //改变源
        changeOrigin: true,
        //开启websocket
        ws: true,
        //关闭https检查
        secure: false,
        //重写路径
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  lintOnSave: false
}